<script setup lang="ts">
import Children from "./components/Children.vue";
import {provide, ref} from "vue";

const count = ref(0)
const changeCount = () => {
  count.value++
}
/*提供数据*/
provide('count', count)
provide('changeCount',changeCount)
</script>

<template>
  <Children></Children>
</template>
